package cn.tedu._01mvcboot01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class EmpController {
    @RequestMapping("/emp/insert")
    @ResponseBody
    public String saveEmp(String name,double salary,String job) {
        System.out.println("员工姓名:"+name+",员工工资:"+salary+",员工岗位:"+job);
        return "添加成功";
    }
    @RequestMapping("/emp/update")
    @ResponseBody
    public String updateEmp(String name,double salary,String job) {
        System.out.println("员工姓名:"+name+",员工工资:"+salary+",员工岗位:"+job);
        return "修改成功";
    }
    @RequestMapping("/emp/delete")
    @ResponseBody
    public String deleteEmp(String name,double salary,String job) {
        System.out.println("员工姓名:"+name+",员工工资:"+salary+",员工岗位:"+job);
        return "删除成功";
    }
}
